package com.mall.admin.exception;

import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class BusinessExceptio extends RuntimeException {
    private ErrorResult errorResult;

    public BusinessExceptio(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
